<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Team Bonus Wizard</title>
<link href="/css/template.css" rel="stylesheet" type="text/css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.21.custom.min.js"></script>
<script language ="javascript"> 
function transfer(date_begin,date_end){
	window.location.href = 'http://<?php echo WEB_IP?>/rosteraudit/payroll-wizard-change-summary/date_begin/'+ date_begin + '/date_end/'+ date_end + '/next/yes';
}
</script>
<style type="text/css">

</style>
</head>

<body style="font-family:Arial, Helvetica, sans-serif">
<h1>Confirm Roster Check</h1>
<h2>Payroll Cycle ( <?php echo $this->dateBegin;?> ~ <?php echo $this->dateEnd;?> )</h2>
<h3>Shop's Manager still did Not Save the Time Sheet for Your Selected Date
</h3>
   
<?php
date_default_timezone_set('Australia/Melbourne');
$stDetail= new Model_DbTable_Roster_Stafflogindetail();
//var_dump($this->missingShops);
$arrShops = array();
if(!empty($this->missingShops)){
foreach($this->missingShops as $key => $v){
	$arrShops[] = $v['shop_head'];
	}
}
$resArr = array();	
if(!empty($arrShops)){	
	$resArr = array_count_values($arrShops);
}
?>
<table width="300" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="col">Shop</th>
    <th scope="col">Missing TimeSheet</th>
  </tr>
 <?php if(!empty($resArr)){
	foreach($resArr as $kr => $vr){ 
	 ?>
  <tr>
    <td><?php echo $kr;?></td>
    <td><?php echo $vr;?></td>
  </tr>
 <?php } ?>
 	<tr>
 		<td colspan = "2">Please Contact Manager to confirm roster, You cannot go next step</td>
 	
 	</tr>
 <?php }else {?> 
   <tr>
    <td colspan="2">All Rcord Saved , You can Export</td>
  </tr>
  <?php }?>
   
</table>
<br />

<input type = "submit" id = "next" name = "next" value = "Next" style= "margin-left:400px;" onclick= "transfer('<?php echo $this->dateBegin;?>','<?php echo $this->dateEnd;?>')" <?php if(!empty($resArr)){?>  disabled <?php }?>></input>


</body>
</html>